/**
 * 
 */
package com.javielinux.pruebaservicio;

import com.google.android.maps.GeoPoint;


/**
 * @author rOVE.
 * Encapsula un "marker".
 * El campo "contenido" no es devuelto.
 * 
 */
public class Estacion {
	private String name   = null;
	private String number = null;
	private String address= null;
	private String fullAddress=null;
	private String lat=null;
	private String lng=null;
	private String open=null;
	private String bonus= null;
	private String contenido = null;
	private String available = null;
	private String free = null;
	private String total = null;
	private String ticket = null;
	private GeoPoint geoLocalizacion = null;


	public GeoPoint getGeoLocalizacion() {
		return geoLocalizacion;
	}

	public void setGeoLocalizacion(GeoPoint geoLocalizacion) {
		this.geoLocalizacion = geoLocalizacion;
	}

	public Estacion(String latitudGenerica, String longitudGenerica) {		
		this.setLat(latitudGenerica);
		this.setLng(longitudGenerica);		
	}

	public Estacion() {
		// TODO Auto-generated constructor stub
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getFullAddress() {
		return fullAddress;
	}

	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getOpen() {
		return open;
	}

	public void setOpen(String open) {
		this.open = open;
	}

	public String getBonus() {
		return bonus;
	}
	public void setBonus(String bonus) {
		this.bonus = bonus;
	}
	public String getContenido() {
		return contenido;
	}
	public void setContenido(String contenido) {
		this.contenido = contenido;
	}

	public double getLatValueDouble() {	
		return Double.valueOf(getLat()).doubleValue();
	}
	public double getLngValueDouble() {		
		return Double.valueOf(getLng()).doubleValue();
	}

	public int getLatInt() {
		return (int) (getLatValueDouble()*1E6);
	}

	public int getLngInt() {
		return (int) (getLngValueDouble()*1E6);
	}
	
	
	public String getAvailable() {
		return available;
	}

	public void setAvailable(String available) {
		this.available = available;
	}
	public String getFree() {
		return free;
	}
	public void setFree(String free) {
		this.free = free;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

}
